package com.qzw.comsumer.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @author ：quziwei
 * @date ：Created in 2020/6/10 11:43 上午
 * @description：测试Handler
 */
@Component
@RabbitListener(queues = "user.register.queue")
@Slf4j
public class TestHandler {
    @RabbitHandler
    public void test(String id){
        log.info("「测试类方法收到消息！！！」");
        log.info(id);
    }
}
